package com.jbl.gof23.create.builder;

/**
 * 具体的建造者
 */
public class Worker extends Builder {
    private Product product = new Product();

    void buildA() {
        product.setA("地基");
        System.out.println("地基");
    }

    void buildB() {
        product.setB("钢筋");
        System.out.println("钢筋");
    }

    void buildC() {
        product.setC("铺电线");
        System.out.println("铺电线");
    }

    void buildD() {
        product.setD("粉刷");
        System.out.println("粉刷");
    }

    Product getProduct() {
        return product;
    }
}
